package com.hexinfo.dmpro.monitor.dao;

import com.hexinfo.dmpro.monitor.model.ImpalaAppModel;
import com.hexinfo.dmpro.monitor.model.base.MonitorReq;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 **/
@Repository
public interface ImpalaAppDao {

    void updateInsertApp(ImpalaAppModel impalaAppModel);

    List<ImpalaAppModel> selectImpalaApp(MonitorReq req);

    List<ImpalaAppModel> selectImpalaAppNow(MonitorReq req);

    void delInsertApp(ImpalaAppModel impalaApp);
    void upInsertApp(ImpalaAppModel impalaApp);

    String selectImpalaExecFailNum(String cmName);

    String selectYarnExecFailNum(String cmName);
}
